package pe.edu.upc.dew.grupo02.service;

import java.util.List;

import pe.edu.upc.dew.grupo02.dao.ITicket;
import pe.edu.upc.dew.grupo02.model.Ticket;

public class TicketService implements ITicketService {

	ITicket ticketDao;
	
	public void setTicketDao(ITicket ticketDao) {
		this.ticketDao = ticketDao;
	}

	@Override
	public void crear(Ticket ticket) {
		ticketDao.crear(ticket);
	}

	@Override
	public void eliminar(int coTicket) {
		ticketDao.eliminar(coTicket);
	}

	@Override
	public Ticket getTicket(int coTicket) {
		return ticketDao.getTicket(coTicket);
	}

	@Override
	public List<Ticket> getTickets() {
		return ticketDao.getTickets();
	}

}
